package org.dromara.system.mapper;

import org.apache.ibatis.annotations.Param;
import org.dromara.system.domain.ZtCoupon;
import org.dromara.system.domain.vo.ZtCouponVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 优惠卷Mapper接口
 *
 * @author Lion Li
 * @date 2024-06-25
 */
public interface ZtCouponMapper extends BaseMapperPlus<ZtCoupon, ZtCouponVo> {

    /**
     * 查询用户待领取的优惠卷
     * @param userId
     * @return
     */
    List<ZtCouponVo> selectUserUnclaimed(@Param("userId") Long userId);
}
